package com.sc.nft.dto;

import io.swagger.annotations.ApiModelProperty;
import jdk.nashorn.internal.ir.annotations.Ignore;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

@Data
public class MerchantProductDTO {

    @ApiModelProperty(value = "产品名称")
    @Length(min = 1, max = 10, message = "产品名称长度必须在1-10之间")
    @NotNull(message = "产品名称不能为空")
    private String name;

    @ApiModelProperty(value = "产品描述")
    @Length(min = 1, max = 100, message = "产品描述长度必须在1-100之间")
    private String description;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "价格")
    private Double price;

    @Ignore
    @ApiModelProperty(value = "状态 0:禁用 1:启用")
    private Integer status;

}
